<template>
<div>
  <!-- <div>我是其他页面1</div> -->
  <B>
    <template v-slot="scope">
  {{scope.obj.name2}}
      </template> 
  </B>

  <img :src="getSrc" alt="" srcset="">
  </div>
</template>

<script>
import B from './otherPage2.vue';
export default {
    name:'otherPage1',
    components:{B},
    computed: {
      getSrc:function(){
      //  const imgsrc=new URL('../assets/logo.png', import.meta.url).href;
       const imgsrc='../assets/logo.png';
       return imgsrc
      //  return imgsrc

      
    }
}
}
</script>

<style>

</style>